<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RepositoryLogin.ascx.cs" Inherits="SubversionReports.Web.Controls.RepositoryLogin" %>



<h2>Repository Login</h2>
<p>Please enter the <strong>root URL</strong> for the repository you would like to view.</p>
<asp:PlaceHolder runat="server" ID="OpenSourceBlurb">
    <p>If the repository requires a username and password, enter them here also. Many repositories do not require a username and password for read only access.</p>
    <p>Subversion Reports does not store your username and password. Your username and password are held in a session variable for the duration of your browsing session and destroyed when your session ends.</p>
    <p>The <a href="http://subversionreports.googlecode.com/svn/">source code for this website</a> is Open Source and licensed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License v3</a>. That means it's free and open for scrutiny!</p>
</asp:PlaceHolder>
    
<asp:Table runat="server" ID="LoginContainer">

    <asp:TableRow>
        <asp:TableCell>Repository Url:</asp:TableCell>
        <asp:TableCell><asp:TextBox runat="server" ID="RepositoryUrl" /></asp:TableCell>
        <asp:TableCell RowSpan="4" VerticalAlign="Top">
            <asp:Repeater runat="server" ID="RepositoryRepeater">
                <HeaderTemplate>Recently browsed repositories:<br /></HeaderTemplate>
                <ItemTemplate>
                    <asp:LinkButton runat="server" ID="RepositoryLink" OnClick="RepositoryLink_Click" Text='<%# Container.DataItem %>' /><br />
                </ItemTemplate>
            </asp:Repeater>
        </asp:TableCell>
    </asp:TableRow>
    
    <asp:TableRow>
        <asp:TableCell>Username:</asp:TableCell>
        <asp:TableCell><asp:TextBox runat="server" ID="RepositoryUsername" /></asp:TableCell>
    </asp:TableRow>
    
    <asp:TableRow>
        <asp:TableCell>Password:</asp:TableCell>
        <asp:TableCell><asp:TextBox runat="server" ID="RepositoryPassword" TextMode="Password" /></asp:TableCell>
    </asp:TableRow>
    
    <asp:TableRow>
        <asp:TableCell ColumnSpan="2" HorizontalAlign="Right"><asp:Button runat="server" ID="LoginButton" Text="Login" OnClick="LoginButton_Click" /></asp:TableCell>
    </asp:TableRow>
    
</asp:Table>

<asp:Panel runat="server" ID="ErrorContainer" Visible="false">
    <p><asp:Label runat="server" ID="ErrorLabel" /></p>
    <p><asp:Literal runat="server" ID="ExceptionMessage" /></p>
</asp:Panel>
